﻿using System.Windows.Controls;
using System.Windows.Forms;
using SUNRPA.CONTROLS.IMPL.util;
using System;
using RPAVIEW.views.controlLibrary;

namespace RPAVIEW.views.EditPage.flows.CreateDirN{
   
    public partial class Input:BaseParamViewAction{
        public Input() {
            InitializeComponent();
        }
        public override void UpdateSource()  
        {
            this.fatherDir.GetBindingExpression(SelVarTextBox.text).UpdateSource();
            this.dirName.GetBindingExpression(SelVarTextBox.text).UpdateSource();
        }

        private void selectFileDir(object sender, System.Windows.RoutedEventArgs e){
            FolderBrowserDialog openFileDlg = FileUtil.OpenFloderSelectDialog();
            DialogResult dialogResult = openFileDlg.ShowDialog();
            //按下确定选择的按钮  
            if (dialogResult == DialogResult.OK){
                //记录选中的目录
                this.fatherDir.Text = openFileDlg.SelectedPath;
            }

        }
    }
}
